/**
 * Created by hxpeng on 2017/5/11.
 */
(function () {
    'use strict';

    angular.module('App.pages.class.msg')
        .factory("MsgService",MsgService);

    function MsgService($q,MsgModel,AppUtils,LoginAccountAuth) {

        var service = {
            loadMsgPage: loadMsgPage,
            createMsg: createMsg,
            deleteMsg: deleteMsg
        };

        function loadMsgPage(params){
            var deferred = $q.defer();
            MsgModel.findMsgPage(params).$promise.then(function(response){
                deferred.resolve(response);
            })
            return deferred.promise;
        }

        function createMsg(){

        }
        function deleteMsg(){

        }

        return service;
    }

})();